package com.px.chapter_Dec_1.yg;

public class Manger extends Employee {
    private int bonus;

    public Manger(String name, int id, String salary, int bonus) {
        super(name, id, salary);
        this.bonus = bonus;
    }

    public Manger() {
    }

    public Manger(int bonus) {
        this.bonus = bonus;
    }

    @Override
    public void work() {
        System.out.println(this.bonus+super.getSalary());
    }

    public int getBonus() {
        return bonus;
    }

    public void setBonus(int bonus) {
        this.bonus = bonus;
    }
}
